#ifndef CCUSTOMFUNCHELPER_H
#define CCUSTOMFUNCHELPER_H

#include <string>
#include <list>
#include <mutex>

#ifdef _WIN32
#include <windows.h>
#endif

namespace libcvos_vfr
{
	namespace Helper
	{

		bool Tool_CheckIfFileNameIntheList(std::list<std::string> &fileNameList, std::string fileName, std::mutex &Lock);

		bool Tool_AddFileNameToTheList(std::list<std::string> &fileNameList, std::string fileName, std::mutex &pCsLock, std::string::size_type maxListSize);

        int Tool_GetRanNum();

#ifdef _WIN32
		int Tool_SafeCloseThread(HANDLE& threadHandle);
#endif // WIN32
	}
}

#endif // !cCustomFuncHelper_h
